package cn.milolab.djback.dao;

import cn.milolab.djback.bean.entity.Job;
import cn.milolab.djback.bean.request.AddJobRequest;
import cn.milolab.djback.bean.request.UpdateJobRequest;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author 叶欣委
 */
@Repository
public interface JobDAO {
    Integer insertJob(AddJobRequest addJobRequest);

    Integer updateJob(UpdateJobRequest updateJobRequest);

    Integer deleteJob(Integer id);

    List<Job> getJob( String sort);

    Job getJobById(Integer id);

    List<Job> getOpeningJob(Date date);
}
